$(function(){
    $(".btn-primary").click(function(){

            var combo_name = $('.combo_name').val();
            if(combo_name==''){
                errorTips('btn-primary',$(".combo_name"),"请输入套餐名称");
                return ;
            }
            /*
             *表单提交
             */
                var uri = $("#combo").attr("action");
                var data = $("form[id=combo]").serialize();
                ajaxPost(uri, $(".btn-primary"), data, function(r){
                    $(".btn-primary").removeAttr("disabled");
                    location.href = r.url;
                });
            });
});